package com.kb.design.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.kb.design.entity.DesignComment;
import com.kb.design.mapper.postgreSQL.DesignCommentMapper;
import com.kb.design.mapper.postgreSQL.DesignRequirementMapper;
import com.kb.design.service.DesignCommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @Auther:chenzx
 * @Date:2023/11/13
 * @Description:
 */
@Service
@DS("slave-1")
public class DesignCommentServiceImpl extends ServiceImpl<DesignCommentMapper, DesignComment>  implements DesignCommentService {

    @Autowired
    private DesignCommentMapper designCommentMapper;


    @Override
    public Page<DesignComment> queryByPage(DesignComment designComment) {
        return null;
    }

    @Override
    public void add(DesignComment designComment) {
        designComment.setCreateTime(LocalDateTime.now());
        designCommentMapper.insert(designComment);
    }
}
